package com.pf.enums;

import lombok.Getter;

@Getter
public enum BaseResultEnum {

    SUCCESS(0, "调用成功！"),
    FAIL(-1, "调用失败！"),
    SYSTEM_ERROR(10000, "系统错误！"),
    PARAM_ERROR(10001, "参数错误！"),
    RETRY(10002, "重试！"),

    JOB_NOT_EXISTS(20000, "任务不存在！"),
    JOB_IS_RUNNING(20001, "任务运行中！"),
    LOG_INFO_EXISTS(20002, "日志信息不存在！");

    private Integer code;
    private String msg;

    BaseResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
